package com.northpool.operator.pub.service.request;

public class RegisterDataRequest {
    private int type = 1;
    private String alias;
    private String tableName;
    private String groupId = "-1";
    private String name;
    private String fields = "fid,geom";
    private String tag = "";
    private String filter = "";
    private String control = "";
    private String shapeField = "geom";
    private String keyField = "fid";
    private String datasourceId;
    private int isView = 0;
    private String srText = "";

    public RegisterDataRequest() {
    }

    // Getters and Setters
    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFields() {
        return fields;
    }

    public void setFields(String fields) {
        this.fields = fields;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getFilter() {
        return filter;
    }

    public void setFilter(String filter) {
        this.filter = filter;
    }

    public String getControl() {
        return control;
    }

    public void setControl(String control) {
        this.control = control;
    }

    public String getShapeField() {
        return shapeField;
    }

    public void setShapeField(String shapeField) {
        this.shapeField = shapeField;
    }

    public String getKeyField() {
        return keyField;
    }

    public void setKeyField(String keyField) {
        this.keyField = keyField;
    }

    public String getDatasourceId() {
        return datasourceId;
    }

    public void setDatasourceId(String datasourceId) {
        this.datasourceId = datasourceId;
    }

    public int getIsView() {
        return isView;
    }

    public void setIsView(int isView) {
        this.isView = isView;
    }

    public String getSrText() {
        return srText;
    }

    public void setSrText(String srText) {
        this.srText = srText;
    }

    @Override
    public String toString() {
        return "EntityClass{" +
                "type=" + type +
                ", alias='" + alias + '\'' +
                ", tableName='" + tableName + '\'' +
                ", groupId=" + groupId +
                ", name='" + name + '\'' +
                ", fields=" + fields +
                ", tag='" + tag + '\'' +
                ", filter='" + filter + '\'' +
                ", control='" + control + '\'' +
                ", shapeField='" + shapeField + '\'' +
                ", keyField='" + keyField + '\'' +
                ", datasourceId='" + datasourceId + '\'' +
                ", isView=" + isView +
                ", srText='" + srText + '\'' +
                '}';
    }

}
